<template>
    <div class="backTop" @click="top">
        <img src="@/assets/images/hide-icon.png" />
        <div class="text">点击返回</div>
    </div>
</template>
<script>
export default {
    data () {
        return {

        }
    },
    methods: {
        top () {
            // window.scrollTo(0, 0)
            this.$emit('close')
        }
    }
}
</script>
<style lang="less" scoped>
.backTop {
    height: 1.86rem;
    display: flex;
    padding-top: 0.36rem;
    background-color: #000000;
    flex-direction: column;
    align-items: center;
    img {
        width: 0.88rem;
        height: 0.88rem;
        display: block;
        margin-bottom: 0.2rem;
    }
    .text{
        font-size: 0.30rem;
        color: #ffffff;
    }
}
</style>
